import App from './App'
import Vuex from 'vuex';

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.prototype.scene= '';
Vue.use(Vuex);

App.mpType = 'app'
const app = new Vue({
  ...App
})
App.$mount()
// #endif





// #ifdef VUE3
import { createSSRApp } from 'vue';
import * as Pinia from 'pinia';

export function createApp() {
  const app = createSSRApp(App)
  	app.use(Pinia.createPinia());
	app.use(Vuex);
	const store = new Vuex.Store({
	  // 你的store配置
	});

  return {
	  store,
    app,
	Pinia, // 此处必须将 Pinia 返回
  }
}
// #endif


 